<template>
  <div>
    <!-- 成就 -->
    <div class="top">
      <ul>
        <li class="logo"><img src="@\assets\image\login.png" alt="" /></li>
        <li class="two">
          <p>Hello,{{ username }}</p>
          <p>今天是你学习的第一天</p>
        </li>
        <li class="three">
          <span><img src="@\assets\image\icon\m_1_2.png" alt="" /></span>
          <i>0</i>
        </li>
        <li class="three">
          <span
            ><img src="@\assets\image\icon\m_Achievements.png" alt=""
          /></span>
          <i>0</i>
        </li>
      </ul>
    </div>
    <div class="center_box">
      <div class="s_box">
        <div class="xs_box">
          <ul>
            <li>
              <span class="txt">共学习课次</span>
              <span
                >0
                <i>次</i>
              </span>
            </li>
            <li>
              <span class="txt">共学习单词</span>
              <span
                >0
                <i>次</i>
              </span>
            </li>
            <li>
              <span class="txt">共获得mvp</span>
              <span
                >0
                <i>次</i>
              </span>
            </li>
          </ul>
        </div>
        <div class="chengjiu">
          <span class="one"
            ><img src="@\assets\image\icon\i_Achievements.png" alt="" />
            <i>我的成就</i></span
          >
          <span class="two"
            ><img
              @click="AchievementsListclick"
              src="@\assets\image\icon\icon_3.png"
              alt=""
          /></span>
        </div>
        <div class="chengjiulist">
          <ul>
            <li>
              <img src="@\assets\image\A-1.png" alt="" />
              <span>持之以恒</span>
            </li>
            <li>
              <img src="@\assets\image\A-2.png" alt="" />
              <span>孜孜不倦</span>
            </li>
            <li>
              <img src="@\assets\image\A-3.png" alt="" />
              <span>我是学霸</span>
            </li>
            <li>
              <img src="@\assets\image\A-4.png" alt="" />
              <span>常胜将军</span>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      username: localStorage.getItem("Cname"),
    };
  },
  methods: {
    AchievementsListclick() {
      // console.log(1);
      this.$router.push("/AchievementsList");
    },
  },
};
</script>

<style lang="less" scoped>
@import "../../assets/css/var.less";
.top {
  height: 160px;
  background: #41a0fe;
  padding: 15px;
  ul {
    display: flex;
    margin-top: 20px;
    .logo {
      width: 55px;
      height: 55px;

      img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 3px solid #ffffff;
      }
    }
    .two {
      margin-left: 10px;
      margin-top: 10px;
    }
    .two p:nth-child(1) {
      font-size: @m-font;
      // font-weight: 555;
      color: #ffffff;
    }
    .two p:nth-child(2) {
      font-size: @xs-font;
      color: #eee;
      margin-top: 7px;
    }
    li:nth-child(3) {
      margin-left: 50px;
    }
    .three {
      height: 55px;
      width: 45px;
      border-radius: 23px;
      display: flex;
      text-align: center;
      .align();
      background: #0f95eb;
      margin-left: 10px;
      img {
        width: 55%;
        margin-top: 10px;
        height: auto;
      }
      i {
        font-size: 16px;
        color: pink;
        margin-bottom: 10px;
      }
    }
  }
}
.center_box {
  width: 100%;
  height: 460px;
  background: white;
  position: relative;
  .s_box {
    width: 100%;
    height: 200px;
    background: white;
    position: absolute;
    top: -20px;
    border-radius: 20px;
    .xs_box {
      height: 110px;
      width: 90%;
      margin: auto;
      background: white;
      position: relative;
      top: -30px;
      border-radius: 30px;
      box-shadow: 0px 1px 10px -6px rgb(0, 0, 0);
      ul {
        display: flex;
        justify-content: space-between;
        padding: 30px 20px;
        font-size: @s-font;
        li {
          display: flex;
          .align();
          // margin-right: 15px;
        }
        .txt {
          margin-bottom: 20px;
          font-size: @s-font;
        }
        i {
          font-size: 15px;
          color: #ccc;
        }
      }
    }
  }
}
.chengjiu {
  display: flex;
  .both ();
  padding: 0 20px;
  span {
    font-size: 20px;
    line-height: 30px;
    height: 30px;
  }
  .two img {
    margin-top: 12px;
    width: 10px;
  }
  .one {
    display: flex;
    align-items: center;
  }
  .one img {
    height: 30px;
    width: 30px;
  }
  .one i {
    line-height: 30px;
    font-size: 16px;
  }
}
.chengjiulist {
  padding: 0 20px;
}
.chengjiulist ul {
  display: flex;
  margin-top: 20px;
  justify-content: space-between;
  img {
    width: 60px;
    height: 60px;
  }
  span {
    font-size: 14px;
    margin-top: 10px;
  }
  li {
    display: flex;
    .align();
  }
}
</style>
